﻿<Window x:Class="uTorrentNetClient.ShellView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:uc="clr-namespace:uTorrentNetClient.ModelDesign.Main.View;assembly=uTorrentNetClient.ModelDesign"
        xmlns:cal="http://www.codeplex.com/CompositeWPF"
        Title="uTorrentNetClient"
        Icon="/uTorrentNetClient;component/Resources/TheFatController.ico">
    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <ContentControl cal:RegionManager.RegionName="Main"/>
        <ContentControl cal:RegionManager.RegionName="Dialog">
            <ContentControl.Template>
                <ControlTemplate TargetType="ContentControl">
                    <Border Background="#90000000" Visibility="{Binding Visibility}">
                        <Border Background="AliceBlue" BorderBrush="Black" BorderThickness="1" CornerRadius="10,0,10,0" VerticalAlignment="Center" HorizontalAlignment="Center">
                            <Grid>
                                <ContentPresenter Margin="10,0,10,0" Content="{TemplateBinding Content}" />
                            </Grid>
                        </Border>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="HasContent" Value="false">
                            <Setter Property="Visibility" Value="Collapsed" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </ContentControl.Template>
        </ContentControl>
    </Grid>
</Window>
